package com.fmc123.shop.entity ;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.fmc123.base.pesistence.BaseEntity;
/**
 * 
 * @desc    goods
 * @date    2015/11/14
 */
@Entity
@Table(name = "goods" )
public class Goods extends BaseEntity {
    
    private static final long serialVersionUID = 1L;

    @Column(name = "NAME" ,length = 255 ,nullable = false)  
    private String name ;
    
    @Column(name = "CODE" ,length = 255 ,nullable = false)  
    private String code ;
    
    @Column(name = "STATE" ,length = 11)  
    private Long state ;
    
    @Column(name = "DESCRIPTION" ,length = 255)  
    private String description ;
    
    @Column(name = "PRICE")  
    private Double price ;
    
    @Column(name = "NUM" ,length = 11)  
    private Long num ;
    public void setName (String name){
        this.name = name ;
    }
    public String getName (){
        return this.name ;
    }
     
    public void setCode (String code){
        this.code = code ;
    }
    public String getCode (){
        return this.code ;
    }
     
    public void setState (Long state){
        this.state = state ;
    }
    public Long getState (){
        return this.state ;
    }
     
    public void setDescription (String description){
        this.description = description ;
    }
    public String getDescription (){
        return this.description ;
    }
     
    public void setPrice (Double price){
        this.price = price ;
    }
    public Double getPrice (){
        return this.price ;
    }
     
    public void setNum (Long num){
        this.num = num ;
    }
    public Long getNum (){
        return this.num ;
    }
     
}